package cn.article.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import cn.easier.club.base.annotation.IsNeeded;

@Entity
@Table(name = "province_info")
@JsonIgnoreProperties(ignoreUnknown = true)
public class Province implements Serializable{

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Integer aid;
	
	/**
	 * 省份名称
	 */
	@IsNeeded
	@Column(columnDefinition = "VARCHAR(100)", nullable = false)
	private String provinceName;

	public Integer getAid() {
		return aid;
	}

	public void setAid(Integer aid) {
		this.aid = aid;
	}

	public String getProvinceName() {
		return provinceName;
	}

	public void setProvinceName(String provinceName) {
		this.provinceName = provinceName;
	}

	@Override
	public String toString() {
		return "Province [aid=" + aid + ", provinceName=" + provinceName + "]";
	}

}
